# -*- codeing = utf-8 -*-
# @Time : 2022/8/5 21:11
# @Author : ZN
# @Email : 747723508@qq.com
# @File : urls.py
# @Software: PyCharm
from django.urls import path
from rest_framework.routers import DefaultRouter
from rest_framework_jwt.views import obtain_jwt_token
from .views import *
urlpatterns = [
    path('login/',obtain_jwt_token),
    path('image/verification/<uuid:uuid>/',ImageVerifyView.as_view()), #验证码路由
]
router = DefaultRouter()
router.register('users',UserViewSet)
router.register('user',UserDviewSet) #删除用户路由
router.register('area',AreaViewSet) #行政区划路由
router.register('address',AddressViewSet,basename='address') #收货地址路由
urlpatterns +=router.urls